<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="../../../../../WEB-INF/myTag.tld" prefix="my"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>添加/修改调查统计季度（整改表）</title>
<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/bootstrap.min.css?v=3.3.5"
	rel="stylesheet">
<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/font-awesome.min.css?v=4.4.0"
	rel="stylesheet">
	<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/plugins/chosen/chosen.css"
	rel="stylesheet">
<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/animate.min.css"
	rel="stylesheet">
<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/style.min.css?v=4.0.0"
	rel="stylesheet">
<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/plugins/toastr/toastr.min.css"
	rel="stylesheet">

<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/plugins/iCheck/custom.css"
	rel="stylesheet">
<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/table_style.css"
	rel="stylesheet">
</head>

<body class="gray-bg">

<div class=" animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<!-- <h5>添加/修改新闻</h5>
						<div class="ibox-tools">
							<a class="collapse-link"> <i class="fa fa-chevron-up"></i>
							</a>
						</div> -->
						<ul class="nav nav-tabs">
							<li class="active"><a data-toggle="tab" href="#tab-1"><i
									class="fa fa-user"></i>调查统计季报表三（核查表）—— 添加</a></li>
									<div class="col-lg-7 col-md-7 col-sm-3 col-xs-1"></div>
                    		<button type="button" class="btn btn-success glyphicon glyphicon-triangle-left btn-sm 
                    		col-lg-1 col-md-1 col-sm-3 col-xs-3" onclick="backList();">
                    		返回</button>

						</ul>
					</div>

					<div class="ibox-content">
						<input type="hidden" id="fileUploadIp" value="${fileUploadIp}" />
						<form action="<%=request.getContextPath()%>/bgGlutTableThreeChick/addTable.do"
							id="subForm" method="post" class="form-horizontal"
							onsubmit="return beforeSub();" enctype="multipart/form-data">
							 <input type="hidden" id="newsId" name="tableId" value="${threeChick.tableId}" /> 
							 <input type="hidden" id="status" name="status" value="1" />

							<div class="table-responsive tab-content">

								<!-- *************新闻tab页**************** -->
								<div id="tab-1" class="tab-pane active">
									<div class="full-height-scroll">
									<div class="form-group col-lg-12 col-md-12  col-sm-12 col-xs-12">
											<div class="col-lg-12 col-md-12  col-sm-12 col-xs-12">
											    <label class="control-label col-lg-2 col-md-2  col-sm-12 col-xs-12 ">呈报单位及呈报人:</label>
												<label class="control-label col-lg-5 col-md-5 col-sm-12 col-xs-12 " style="text-align:left;">${threeChick.company}&nbsp;&nbsp;&nbsp;&nbsp;${threeChick.DReportP}</label>
												<input type="hidden" name="DReportP" value="${threeChick.DReportP}"/>
												<input type="hidden" name="company" value="${threeChick.company}"/>
												<label class="control-label col-lg-3 col-md-3 col-sm-12 col-xs-12">填报日期:</label>
											    <label class="control-label col-lg-2 col-md-2 col-sm-12 col-xs-12 time"  style="text-align:left;">
											    <input type="hidden" id="reportTime" name="reportTime" />
											    </label>
											    <input type="hidden" id="id_userID" name="userId" value="${userId}" />
											</div>
									</div>
										<%-- <div class="form-group col-lg-6 col-md-6 col-sm-12 col-xs-12">
											<label class="col-xs-4 control-label" style="text-align:center">呈报单位及呈报人:</label>
											<div class="col-xs-4">
												<span class="myspan">${threeChick.company}</span>
												<input type="hidden" name="company" value="${threeChick.company}"/>
												
											</div>
											<div class="col-xs-4">
												<span class="myspan">${threeChick.DReportP}</span>
												
												<input type="hidden" name="DReportP" value="${threeChick.DReportP}"/>
											</div>
										</div>
										<div class="form-group col-lg-6 col-md-6 col-sm-12 col-xs-12" id="data_1">
											<label class="control-label col-xs-5"style="text-align:center">填报日期</label>
											<input type="hidden" id="reportTime" name="reportTime" />
											<label class="col-xs-7 control-label time" style="text-align:left"></label>
										</div> --%>
										
											 <div class="row div-table">
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-1 hidden-sm hidden-xs" style="height: 481px;">
												<div class="subwrap">
													<div class="content">单位提出整改措施和意见</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">单位提出整改措施和意见</div>
												</div>
											</div>
											<!-- 大屏时显示 -->
											<div class="col-lg-4 col-md-4 hidden-sm hidden-xs" style="height: 124px;">
												<div class="subwrap">
													<div class="content">存在问题说明（针对表一所列的三大方面问题，特别是第一方面17项问题）</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height">
												<div class="subwrap">
													<div class="content">存在问题说明（针对表一所列的三大方面问题，特别是第一方面17项问题）</div>
												</div>
											</div>
											<div class="col-lg-7 col-md-7 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
															<textarea class="form-control text_style notLess1" rows="4" name="problem"
													maxlength="300" style="line-height:2.0;outline:none;resize:none;"
															 >${threeChick.problem}</textarea>
													</div>
												</div>
											</div>
											<!-- 大屏时显示 -->
											<div class="col-lg-4 col-md-4 hidden-sm hidden-xs" style="height: 124px;">
												<div class="subwrap">
													<div class="content">积极表现说明</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height">
												<div class="subwrap">
													<div class="content">积极表现说明</div>
												</div>
											</div>
											<div class="col-lg-7 col-md-7 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style notLess2" rows="4" name="performance"
													maxlength="300" style="line-height:2.0;outline:none;resize:none;"
															 >${threeChick.performance}</textarea>
													</div>
												</div>
											</div>
											<!-- 大屏时显示 -->
											<div class="col-lg-4 col-md-4 hidden-sm hidden-xs" style="height: 233px;">
												<div class="subwrap">
													<div class="content">列为动态管理对象建议</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height">
												<div class="subwrap">
													<div class="content">列为动态管理对象建议</div>
												</div>
											</div>
											<div class="col-lg-7 col-md-7 col-sm-12 col-xs-12"style="padding:0px;height: 180px;" >
												<div class="subwrap" style="padding:0;">
													<div class="content">
														<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="border:0px;border-bottom:2px solid #ccc;height:auto">
															<div class="subwrap">
																<div class="content">
																呈报
													<!-- <input id="units" list="unit" class="notLess3" name="suggestionName"> -->
													<c:if test="${tableOneDeportPList.size()>0}">
													<select data-placeholder="" class="chosen-select notLess3" id="suggestionName" name="suggestionName" >
													<c:forEach items="${tableOneDeportPList}" var="item" varStatus="i">
													<option value="${item}">${item}</option>
													</c:forEach>
													</select>
													</c:if>
													<c:if test="${tableOneDeportPList.size()==0}">
													   <select data-placeholder="" class="chosen-select notLess3" name="suggestionName" >
														   <option value="">暂无可选呈报警员名称</option>
														</select>
													</c:if>
				
													<%-- <datalist id="unit">
													<c:forEach items="${tableOneDeportPList}"
														var="item" varStatus="i">
														<option value="${item}">${item}</option>
														</c:forEach>
													</datalist> --%>同志作为
													<select style="width:150px" class="notLess4" name="suggestionCon">
														<option value="1" selected="selected">积极分子</option>
														<option value="2">重点帮扶对象</option>
														<option value="3">关注对象</option>
													</select>
														  管理。
														
																</div>
															</div>
														</div>
														
														<!-- 有单位主管和单位监管的情况 -->
														<c:if test="${charge=='hasTwoCharge'}">
														<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12"style="border:0px;height:auto">
															<div class="subwrap">
																<div class="content">
																单位主管领导（所队长室中心主任）签字：
																<c:if test="${sysUser.role=='单位主管(主任、所长、大队长)'}">
														       <div id="imgdiv_1" class="imgname">
															     <img id="imgShow_1" width="100%" height="100%"
																style="cursor: pointer;" 
																   src="http://localhost:8086/images/201703311621574260.png"
																onclick="clickImg('deldisabled1', 'imgShow_1', 800);" />
													          </div>
													          </c:if>
													          
													          <c:if test="${sysUser.role=='单位监管(教导员)'}">
														       <div class="imgname"></div>
													          </c:if>
														     <input type="hidden" id="deldisabled1" class="notLess5" name="sugSignA" />
																</div>
															</div>
														</div>
														<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12"style="border:0px;height:auto">
															<div class="subwrap">
																<div class="content">
																单位监管领导（教导员或负责领导）签字：
														         <div class="imgname"></div>
																</div>
															</div>
														</div>
														</c:if>	
														
														
														<!-- 有单位主管无单位监管的情况 -->
														<c:if test="${charge=='hasCharge' || charge=='hasCharge1'}">
														<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12"style="border:0px;height:auto">
															<div class="subwrap">
																<div class="content">
																单位主管领导（所队长室中心主任）签字：
														       <div id="imgdiv_1" class="imgname">
															     <img id="imgShow_1" width="100%" height="100%"
																style="cursor: pointer;" 
																   src="http://localhost:8086/images/201703311621574260.png"
																onclick="clickImg('deldisabled1', 'imgShow_1', 800);" />
													          </div>
														     <input type="hidden" id="deldisabled1" class="notLess5" name="sugSignA" />
																</div>
															</div>
														</div>
														<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12"style="border:0px;height:auto">
															<div class="subwrap">
																<div class="content">
																单位监管领导（教导员或负责领导）签字：
														          <div id="imgdiv_2" class="imgname">
															     <img id="imgShow_2" width="100%" height="100%"
																style="cursor: pointer;" 
																   src="http://localhost:8086/images/201703311621574260.png"
																onclick="clickImg('deldisabled2', 'imgShow_2', 800);" />
													          </div>
														     <input type="hidden" id="deldisabled2" name="sugSignB" />
																</div>
															</div>
														</div>
														</c:if>
														
														
													</div>
												</div>
											</div>
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-1 hidden-sm hidden-xs" style="height: 104px;">
												<div class="subwrap">
													<div class="content">政工室主任意见</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">政工室主任意见</div>
												</div>
											</div>
											<div class="col-lg-11 col-md-11 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style" rows="2" name="sugZgs" disabled
													maxlength="300" style="line-height:2.0;outline:none;resize:none;"
															 >${threeChick.sugZgs}</textarea>
		
													<span>年　　月　　日</span>
													</div>
												</div>
											</div>
											
											
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-1 hidden-sm hidden-xs" style="height: 104px;">
												<div class="subwrap">
													<div class="content">分管局领导意见</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">分管局领导意见</div>
												</div>
											</div>
											<div class="col-lg-11 col-md-11 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style" rows="2" name="sugFgj" disabled
													maxlength="300" style="line-height:2.0;outline:none;resize:none;"
															 >${threeChick.sugFgj}</textarea>
													<span>年　　月　　日</span>
													</div>
												</div>
											</div> 
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-1 hidden-sm hidden-xs" style="height: 104px;">
												<div class="subwrap">
													<div class="content">局主要领导意见</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">局主要领导意见
													</div>
												</div>
											</div>
											<div class="col-lg-2 col-md-2 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style" rows="2" disabled
														maxlength="300" style="line-height:2.0;outline:none;resize:none;"
															 >同意进行动态管理。</textarea>
													<span>年　　月　　日</span>
													</div>
												</div>
											</div> 
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-1 hidden-sm hidden-xs" style="height: 104px;">
												<div class="subwrap">
													<div class="content">局长会签
													</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">局长会签
													</div>
												</div>
											</div>
											<div class="col-lg-2 col-md-2 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style" rows="2" name="leaderSignJzh" disabled
													maxlength="300" style="line-height:2.0;outline:none;resize:none;"
															 >${threeChick.leaderSignJzh}</textarea><span>&nbsp;</span>
													</div>
												</div>
											</div> 
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-1 hidden-sm hidden-xs" style="height: 104px;">
												<div class="subwrap">
													<div class="content">政委会签
													</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">政委会签
													</div>
												</div>
											</div>
											<div class="col-lg-2 col-md-2 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style" rows="2" name="leaderSignZwh" disabled
													maxlength="300" style="line-height:2.0;outline:none;resize:none;"
															 >${threeChick.leaderSignZwh}</textarea><span>&nbsp;</span>
													</div>
												</div>
											</div>  
											
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-1 hidden-sm hidden-xs" style="height: 104px;">
												<div class="subwrap">
													<div class="content">纪委书记会签
													</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">纪委书记会签
													</div>
												</div>
											</div>
											<div class="col-lg-2 col-md-2 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style" rows="2" name="leaderSignJwsjh" disabled
													maxlength="300" style="line-height:2.0;outline:none;resize:none;"
															 >${threeChick.leaderSignJwsjh}</textarea><span>&nbsp;</span>
													</div>
												</div>
											</div>  
											
												
											
										
										<%-- <div class="col-lg-12">
											<table class="table table-bordered">
												 <tr>
													<td class="label_style col-lg-1" rowspan="4" colspan="1" >单位呈报意见</td>												
													<td class="label_style col-lg-2" colspan="2">存在问题说明（针对表一所列的三大方面问题，特别是第一方面17项问题）</td>
													<td class="label_style col-lg-9" colspan="9">
													<textarea class="form-control text_style notLess1" rows="4" name="problem"
													maxlength="300"
															 >${threeChick.problem}</textarea>
													</td>									
												</tr> 
												 <tr>											
													<td class="label_style col-lg-2" colspan="2">积极表现说明</td>
													<td class="label_style col-lg-9" colspan="9">
													<textarea class="form-control text_style notLess2" rows="2" name="performance"
													maxlength="300"
															 >${threeChick.performance}</textarea>
													</td>									
												</tr> 
												<tr>											
													<td class="label_style col-lg-2" rowspan="2" colspan="2">列为动态管理对象建议</td>
													<td class="label_style col-lg-9" colspan="9">呈报
													<input id="units" list="unit" class="notLess3" name="suggestionName">
													<datalist id="unit">
													<c:forEach items="${tableOneDeportPList}"
														var="item" varStatus="i">
														<option value="${item}">${item}</option>
														</c:forEach>
													</datalist>同志作为
													<select style="width:150px" class="notLess4" name="suggestionCon">
														<option value="1" selected="selected">积极分子</option>
														<option value="2">重点帮扶对象</option>
														<option value="3">关注对象</option>
													</select>
														  管理。
													</td>	
												</tr>
												<tr>											
													<td class="label_style col-lg-5" colspan="4">
														单位主管领导（所队长室中心主任）签字：
														<div id="imgdiv_1" class="imgname">
															<img id="imgShow_1" width="100%" height="100%"
																style="cursor: pointer;" 
																   src="http://localhost:8086/images/201703311621574260.png"
																onclick="clickImg('deldisabled1', 'imgShow_1', 800);" />
													    </div>
														<input type="hidden" id="deldisabled1" class="notLess5" name="sugSignA" />
														
													</td>	
													<td class="label_style col-lg-5" colspan="4">
														单位监管领导（教导员或负责领导）签字：
														<div class="imgname"></div>
													</td>													
												</tr>
												
												<tr>											
													<td class="label_style col-lg-1" colspan="1">
														政工室主任意见
													</td>	
													<td class="label_style col-lg-11" colspan="11">
													<textarea class="form-control text_style" rows="2" name="sugZgs" disabled
													maxlength="300"
															 >${threeChick.sugZgs}</textarea>
													<span>年　　月　　日</span>
													</td>													
												</tr>
												<tr>											
													<td class="label_style col-lg-1" colspan="1">
														分管局领导意见
													</td>	
													<td class="label_style col-lg-11" colspan="11">
													<textarea class="form-control text_style" rows="2" name="sugFgj" disabled
													maxlength="300"
															 >${threeChick.sugFgj}</textarea>
													<span>年　　月　　日</span>
													</td>													
												</tr>
												<tr>											
													<td class="label_style col-lg-1" colspan="1">
														局主要领导意见
													</td>	
													<td class="label_style col-lg-2" colspan="2">
														<textarea class="form-control text_style" rows="2" disabled
														maxlength="300"
															 >同意进行动态管理。</textarea>
														<span>年　　月　　日</span>
													</td>
													<td class="label_style col-lg-1" colspan="1">
														局长会签
													</td>	
													<td class="label_style col-lg-2" colspan="2">
													<textarea class="form-control text_style" rows="2" name="leaderSignJzh" disabled
													maxlength="300"
															 >${threeChick.leaderSignJzh}</textarea>
													</td>	
													<td class="label_style col-lg-1" colspan="1">
														政委会签
													</td>	
													<td class="label_style col-lg-2" colspan="2">
													<textarea class="form-control text_style" rows="2" name="leaderSignZwh" disabled
													maxlength="300"
															 >${threeChick.leaderSignZwh}</textarea>
													</td>	
													<td class="label_style col-lg-1" colspan="1">
														纪委书记会签
													</td>	
													<td class="label_style col-lg-2" colspan="2">
													<textarea class="form-control text_style" rows="2" name="leaderSignJwsjh" disabled
													maxlength="300"
															 >${threeChick.leaderSignJwsjh}</textarea>
													</td>												
												</tr>
												
											</table>
										</div>
 --%>


									</div>
								</div>

							</div>
							</div>



							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<div class="col-sm-12">
									<button class="btn btn-primary pull-right m-t-n-xs" id="save"
										type="submit">提交</button>
									
								</div>
							</div>
						</form>

					</div>
				</div>
			</div>
		</div>
	</div>
		<%-- <script
		src="<%=request.getContextPath()%>/views/sysdefault/js/jquery.min.js?v=2.1.4"></script>
		<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/chosen/chosen.jquery.js"></script> --%>
</body>
	<script type="text/javascript">
		//var fileUploadIp = $("#fileUploadIp").val();
		window.UEDITOR_UPLOAD_URL = '<%=request.getAttribute("fileUploadIp")%>';
	</script>
    <!-- 引入一个jQuery 用于初始化界面 -->
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/jquery.min.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/jquery.min.js?v=2.1.4"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/bootstrap.min.js?v=3.3.5"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/content.min.js?v=1.0.0"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/toastr/toastr.min.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/layer/layer.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/iCheck/icheck.min.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
	<script type="text/javascript"
		src="<%=request.getContextPath()%>/views/sysdefault/js/uploadPreview.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/datapicker/bootstrap-datepicker.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/clockpicker/clockpicker.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/cropper/cropper.min.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/demo/form-advanced-demo.min.js"></script>
		<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/chosen/chosen.jquery.js"></script>
		
	<!-- 富文本编辑器 -->
	<%-- <script type="text/javascript" charset="utf-8"
		src="<%=request.getContextPath()%>/views/sysdefault/plugins/uEditor/ueditor.config.js"></script>
	<script type="text/javascript" charset="utf-8"
		src="<%=request.getContextPath()%>/views/sysdefault/plugins/uEditor/ueditor.all.min.js"> </script> --%>
	<%-- <script type="text/javascript" charset="utf-8"
		src="<%=request.getContextPath()%>/views/sysdefault/plugins/uEditor/lang/zh-cn/zh-cn.js"></script> --%>
	<script type="text/javascript">
	     $(".group_style").each(function(){	    	
	    	 var height=$(this).height();
	    	 
	    	$(this).children().each(function(){
	    		/*  $(this).css("height":height); */
	    		$(this).height(height)	    	
	    	})	    		    	
	    });	     
	     $(".groupchild").each(function(){	    	
	    	 var height=$(this).height(); 
	    	
	    	  $(this).children().each(function(){
	    		  
		    		$(this).height(height-2); 
		    	
		    	})	 
	    	    		    	
	    });
	     $(".text_style").each(function(){	    	
	    	 var height=$(this).parent().height(); 
	    	 $(this).height(height);
	    	    		    	
	    });
	     function getNowFormatDate() {
			    var date = new Date();
			    var seperator1 = "年";
			    var seperator2 = "月";
			    var month = date.getMonth() + 1;
			    var strDate = date.getDate();
			    if (month >= 1 && month <= 9) {
			        month = "0" + month;
			    }
			    if (strDate >= 0 && strDate <= 9) {
			        strDate = "0" + strDate;
			    }
			    var currentdate = date.getFullYear() + seperator1 + month + seperator2 
			    return currentdate;
	     }
	     $(".time").html(getNowFormatDate());
	     $("#reportTime").val(getNowFormatDate());
	     $(".yijian").focus(function(){
	    	  $(this).next().html(function getNowFormatDate() {
	    		    var date = new Date();
	    		    var seperator1 = "年";
	    		    var seperator2 = "月";
	    		    var seperator3 = "日";
	    		    var month = date.getMonth() + 1;
	    		    var strDate = date.getDate();
	    		    if (month >= 1 && month <= 9) {
	    		        month = "0" + month;
	    		    }
	    		    if (strDate >= 0 && strDate <= 9) {
	    		        strDate = "0" + strDate;
	    		    }
	    		    var currentdate = date.getFullYear() + seperator1 + month + seperator2  +strDate +seperator3
	    		    return currentdate;
	    	});
	     });
	</script>
	<script type="text/javascript">
	    var basePath = '<%=request.getContextPath()%>';
	    //定义图片服务器IP地址
	    var ImageServer = "http://localhost:8086/images/";
	    //签字div中img标签对应的id值
		var imgId = "";
        //签字div中隐藏的input对应的ID值
		var inputId = "";

		//初始化富文本编辑器
		/* var ue = UE.getEditor('editor'); */

		toastr.options = {
			"closeButton" : true,
			"debug" : false,
			"progressBar" : true,
			"positionClass" : "toast-top-left",
			"showDuration" : "400",
			"hideDuration" : "1000",
			"timeOut" : "3000",
			"extendedTimeOut" : "1000",
			"showEasing" : "swing",
			"hideEasing" : "linear",
			"showMethod" : "fadeIn",
			"hideMethod" : "fadeOut"
		}

		function setShowLength(obj, maxlength, id) {
			var rem = maxlength - obj.value.length;
			var wid = id;
			if (rem < 0) {
				rem = 0;
			}
			document.getElementById(wid).innerHTML = "还可以输入" + rem + "个字符";
		}

		//初始化页面
		$(function() {
			//签字图片回显
			var imageInfo = $("#imageInfo").val();
			if (imageInfo != '') {
				$("#imgShow_1").attr("src", imageInfo);
				$("#up_img_1").val(imageInfo);
			}

			$(".i-checks").iCheck({
				checkboxClass : "icheckbox_square-green",
				radioClass : "iradio_square-green",
			});
			//禁止后退键 作用于Firefox、Opera
			document.onkeypress = banBackSpace;
			//禁止后退键  作用于IE、Chrome
			document.onkeydown = banBackSpace;
		});
		//提交表单前校验--这里校验呈报人填写的五个框
		var notLessNum=5;
		function beforeSub() {
			for(var i =1;i<=notLessNum;i++){
				if($.trim($(".notLess"+i).val())==''){
					toastr.warning("请填写完整！", "提示");
					return false;
				}
				
			}
			return true;
		}
		
		//响应签名功能
		var clickImg = function(mInputId, mImgId, imgageCompress) {
			inputId = mInputId;
			imgId = mImgId;

			layer.open({
				type : 2,
				title : "电子签名",
				fix : false, //不固定
				maxmin : false,
				shadeClose : true,
				shade : 0.3,
				area : [ '90%', '90%' ],
				content : basePath + '/common/signImage.dop?imageCompress=' + imgageCompress
			});
		}
		//弹出框选择回调函数
		var selectCallBack2 = function(base64Codes) {
			debugger;
		    var form=document.forms[0];  
		    var formData = new FormData(form);   //这里连带form里的其他参数也一起提交了,如果不需要提交其他参数可以直接FormData无参数的构造函数  
		    //convertBase64UrlToBlob函数是将base64编码转换为Blob  
		    formData.append("file",convertBase64UrlToBlob(base64Codes));  //append函数的第一个参数是后台获取数据的参数名,和html标签的input的name属性功能相同
		    //设置表三的保存的文件名称
			formData.append("savetablefilename","tabletherecheck"),
		    //ajax 提交form  
		    $.ajax({  
		        url : basePath+"/common/uploadFile.idop" ,  
		        type : "POST",  
		        data : formData,  
		        dataType:"text",  
		        processData : false,         // 告诉jQuery不要去处理发送的数据  
		        contentType : false,        // 告诉jQuery不要去设置Content-Type请求头  
		        success:function(msg){  
		           // window.location.href="${ctx}"+data;  
		           var data= JSON.parse(msg);
		           if(data.errCode !='1'){
		        	   debugger;
		        	   layer.msg('签名失败！', {icon: 5});
		           }
		           if(data.errCode =='1'){
		        	   debugger;
		        	   layer.msg('签名成功！', {icon: 6});
		        	   //回显示图片数据
		        	   echoImageData(data.data);
		           }
		        },  	          
		    });  
			layer.closeAll();
		}
		/**  
		 * 将以base64的图片url数据转换为Blob  
		 * 用url方式表示的base64图片数据  
		 */  
		function convertBase64UrlToBlob(urlData){  
		    debugger;
		    //var bytes=decodeURIComponent(window.atob(urlData.split(',')[1]));
		    var bytes=window.atob(urlData.split(',')[1]);         //去掉url的头，并转换为byte  
		    //处理异常,将ascii码小于0的转换为大于0  
		    var ab = new ArrayBuffer(bytes.length);  
		    var ia = new Uint8Array(ab);  
		    for (var i = 0; i < bytes.length; i++) {  
		        ia[i] = bytes.charCodeAt(i);  
		    }  
		    return new Blob( [ab] , {type : 'image/png'});  
		} 
		//回显示图片数据
		function echoImageData(imgUrl){
			// 根据clickImg传递的mInputId并赋值给全局变量inputId 为其赋值
			$("#"+imgId).attr("src", ImageServer+imgUrl);
			//为对应的name属性值赋值
			$("#"+inputId).val(imgUrl);;
			return true;
		}

		//处理键盘事件 禁止后退键（Backspace）密码或单行、多行文本框除外
		function banBackSpace(e) {
			var ev = e || window.event;//获取event对象   
			var obj = ev.target || ev.srcElement;//获取事件源   
			var t = obj.type || obj.getAttribute('type');//获取事件源类型  
			//获取作为判断条件的事件类型
			var vReadOnly = obj.getAttribute('readonly');
			//处理null值情况
			vReadOnly = (vReadOnly == "") ? false : vReadOnly;
			//当敲Backspace键时，事件源类型为密码或单行、多行文本的，
			//并且readonly属性为true或enabled属性为false的，则退格键失效
			var flag1 = (ev.keyCode == 8
					&& (t == "password" || t == "text" || t == "textarea") && vReadOnly == "readonly") ? true
					: false;
			//当敲Backspace键时，事件源类型非密码或单行、多行文本的，则退格键失效
			var flag2 = (ev.keyCode == 8 && t != "password" && t != "text" && t != "textarea") ? true
					: false;

			//判断
			if (flag2) {
				return false;
			}
			if (flag1) {
				return false;
			}
		}
		
		/* 返回列表 */
		function backList(){
			location.href="listTable.do";
		}
	</script>


</html>
